<template>
  <div class="top">
    <span @click="goback()">&lt;</span>
    <input type="text" placeholder="38c香辣炒肉7元双重补贴..." />
    <div class="search">搜索</div>
  </div>
</template>

<script>
export default {
  methods: {
    goback() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
.top {
  width: 100%;
  height: 0.72rem;
  font-size: 0.16rem;
  padding: 0 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
input {
  width: 2.5rem;
  height: 0.36rem;
  border: 2px solid #07aff6;
  border-radius: 0.3rem;
  padding: 0 0.1rem;
}
span {
  font-size: 0.26rem;
}
.search {
  width: 0.54rem;
  height: 0.36rem;
  text-align: center;
  line-height: 0.36rem;
  color: aliceblue;
  border-radius: 0.2rem;
  background-color: #07aff6;
}
</style>